#coding=utf-8
from selenium import webdriver

# driver = webdriver.PhantomJS(executable_path='C:\soft\phantomjs\bin\phantomjs.exe')
driver = webdriver.PhantomJS(executable_path=r'C:\soft\phantomjs\bin\phantomjs.exe')

driver.get("http://www.baidu.com/")
print driver.current_url
driver.quit()